package com.springdoor.common.core.domain.entity;

import com.springdoor.common.annotation.Excel;
import com.springdoor.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品属性值对象 sprd_goods_attr_val
 * 
 * @author llshs
 * @date 2024-04-30
 */
public class SprdGoodsAttrVal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 属性值id */
    private Long valueId;

    /** 属性id */
    private Long attrId;

    /** 属性id */
    @Excel(name = "属性类型")
    private String attrName;

    /** 属性值键值 */
    @Excel(name = "属性键值")
    private String valueKey;

    /** 属性值显示 */
    @Excel(name = "属性标签")
    private String valueLabel;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long orderNum;

    /** 是否默认（Y是 N否） */
    @Excel(name = "是否默认", readConverterExp = "Y=是,N=否")
    private String isDefault;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setValueId(Long valueId) 
    {
        this.valueId = valueId;
    }

    public Long getValueId() 
    {
        return valueId;
    }
    public void setAttrId(Long attrId) 
    {
        this.attrId = attrId;
    }

    public Long getAttrId() 
    {
        return attrId;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public void setValueKey(String valueKey)
    {
        this.valueKey = valueKey;
    }

    public String getValueKey() 
    {
        return valueKey;
    }
    public void setValueLabel(String valueLabel) 
    {
        this.valueLabel = valueLabel;
    }

    public String getValueLabel() 
    {
        return valueLabel;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setIsDefault(String isDefault) 
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault() 
    {
        return isDefault;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("valueId", getValueId())
            .append("attrId", getAttrId())
            .append("attrName", getAttrName())
            .append("valueKey", getValueKey())
            .append("valueLabel", getValueLabel())
            .append("orderNum", getOrderNum())
            .append("isDefault", getIsDefault())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}
